/**
 * OPay Inc.
 * Copyright (c) 2016-2022 All Rights Reserved.
 */
package cc.dd.marketing.system.exception.response;

import cc.dd.marketing.system.exception.base.BusinessExceptionAssert;
import lombok.Getter;

/**
 * @author sufeng.dong
 * @version $Id: ResultCodeEnum.java, v 0.1 2022-09-08 5:48 PM sufeng.dong Exp $$
 */
@Getter
public enum ResultCodeEnum implements BusinessExceptionAssert {
    REQUEST_SUCCESS("1", "request success"),
    REQUEST_FAIL("999999", "request fail"),
    SYSTEM_ERROR("10000", "系统内部异常"),
    PARAM_ERROR("10001", "参数不合法"),
    RULE_PARAM_ERROR("10002", "规则参数不合法"),
    RESPONSE_NULL("20001", "响应对象为空"),
    ACTIVITY_IS_WRONG("20002", "活动异常"),
    RULE_CHECK_FAIL("20003", "规则检验不通过"),
    REPEAT_PARTICIPATION("20004", "重复参与"),
    NOT_PARTICIPATE_ACTIVITY("20005", "未参与活动"),
    COUPON_STATUS_IS_WRONG("20006", "优惠券状态异常"),
    COUPON_ALREADY_USED_BY_OTHER("20007", "优惠券被其它业务占用"),
    NO_INVITERS("20008","无邀请人"),
    ACTIVITY_STATUS_IS_WRONG("20009", "活动状态异常"),
    TEMPLATE_STATUS_IS_WRONG("20006", "优惠券模板装异常"),
    ;


    private String code;
    private String message;

    ResultCodeEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }
}
